package com.buchouwang.xiongmaitech.xxlJobHandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: sendIotRecord
 * @description: 测试xxl-job
 * @author: ace
 * @Date: 2019-12-25 15:28
 **/
@JobHandler(value = "testJob")
@Component
@Slf4j
public class TestHandler extends IJobHandler {

    private static final Logger logger = LoggerFactory.getLogger(TestHandler.class);

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        String message="雄迈摄像头定时任务测试";
        log.info("打印输出的message信息:{}",message);
        System.out.println("------------------------------");
        return ReturnT.SUCCESS;
    }
}
